import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { TipsComponent } from './tips/tips.component';
import { NoticeComponent } from './notice/notice.component';
import { NotFountComponent } from './not-fount/not-fount.component';
import { OtherComponent } from './other.component';

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: '', component: OtherComponent,
                children: [
                    { path: 'notfount', component: NotFountComponent },
                    { path: 'notice', component: NoticeComponent },
                    { path: 'tips', component: TipsComponent },
                    {
                        path: '',
                        redirectTo: '/other/notfount',
                        pathMatch: 'full'
                    },
                ]
            }
        ])
    ],
    exports: [
        RouterModule
    ]
})
export class OtherRoutingModule { }
